<template>
  <div class="container">
    <f-button @click="onClickButton">上方弹出</f-button>
  </div>
</template>
<script>
import FButton from "../../../src/button.vue";
import plugin from "../../../src/plugin.js";
import Vue from "vue";
Vue.use(plugin);

export default {
  components: {
    "f-button": FButton,
  },
  methods: {
    onClickButton() {
      this.$toast('<strong style="color:green;">原谅色加粗提示</strong>', {
        enableHtml: true,
      });
    },
  },
  data() {
    return {
      content: `
        <style>
          .fallen-toast {
            z-index: 30 ;
          }
        </style>

        <f-button @click="onClickButton">上方弹出</f-button>
        
        methods: {
          onClickButton() {
            this.$toast('<strong style="color:green;">原谅色加粗提示</strong>', {
              enableHtml: true
            });
          }
        },`
        .replace(/^ {8}/gm, "")
        .trim(),
    };
  },
};
</script>

<style>
.container {
  max-width: 800px;
  margin: 30px auto;
  border-radius: 4px;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.3);
  padding: 15px;
}
.container:hover {
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.3), 0 2px 4px 0 rgba(0, 0, 0, 0.3);
}
.fallen-toast {
  z-index: 30 !important;
}
</style>
<style scoped>
* {
  box-sizing: border-box;
}
</style>
